package java44th.group.controller.admin.role;

import java44th.group.service.admin.log.MarketlogService;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;
import java.util.LinkedHashMap;

/**
 * @Aurhor: 王可龙
 * @DATE: 2022/10/13 16:14
 * @Package:java44th.group.controller.admin.log
 * @Description:
 * @Version 1.0
 */
@Component
@Aspect //@Component不省略
public class OptionsAspect {

    @Autowired
    HttpServletRequest request;

    @Pointcut("execution(* java44th.group.controller..*(..))")
    public void ship() {
    }
    @Around("ship()")
    public Object ship(ProceedingJoinPoint joinPoint) throws Throwable {

        Object proceed = joinPoint.proceed();
        return proceed;
    }

}
